package com.xhh.nphm.system.service.impl;

import com.xhh.nphm.system.domain.TmSysNoticeLog;

import com.xhh.nphm.system.mapper.TmSysNoticeLogDao;
import com.xhh.nphm.system.service.TmSysNoticeLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class TmSysNoticeLogServiceImpl implements TmSysNoticeLogService {
    @Autowired
    private TmSysNoticeLogDao tmSysNoticeLogDao;
    @Override
    public int addLog(TmSysNoticeLog tmSysNoticeLog) {
        return tmSysNoticeLogDao.addLog(tmSysNoticeLog);
    }

    @Override
    public TmSysNoticeLog selectByUserIdAndAffId(Long userId, int affId) {
        return tmSysNoticeLogDao.selectByUserIdAndAffId(userId,affId);
    }
}
